<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>其它业务</title>
	<script type="text/javascript" src="${pageContext.request.contextPath }/js/num2zh.js"></script>
	<script id="tmpl_add_tr" type="text/x-jquery-tmpl">
	<tr>
		<td>{{= stockLabel}}</td>
	    <td><input type="text" class="span12" name="bpmStockHolders[{{= stockNum}}].name" placeholder="姓名"></td>
	    <td><input type="text" class="span12" name="bpmStockHolders[{{= stockNum}}].stockRights" placeholder="股权"></td>
	    <td><input type="text" class="span12" name="bpmStockHolders[{{= stockNum}}].telephone" placeholder="联系电话"></td>
	    <td><input type="text" class="span12" name="bpmStockHolders[{{= stockNum}}].identityNo" placeholder="身份证号码"></td>
	    <td><input type="text" class="span12" name="bpmStockHolders[{{= stockNum}}].nativePlace" placeholder="籍贯"></td>
	    <td><input type="text" class="span12" name="bpmStockHolders[{{= stockNum}}].usbPassword" placeholder="U盾密码"></td>
	</tr>
	</script>
	<script type="text/javascript">
	<!--
	var stockRow = 1,stockLabel;
	$(function(){
		$("#bpmFrom").validate({
			rules:{
				businessNo:{
					required:true
				},
				companyName:{
					required:true
				}
			},
			errorClass: "help-inline",
			errorElement: "span",
			highlight:function(element, errorClass, validClass) {
				$(element).parents('.control-group').addClass('error');
			},
			unhighlight: function(element, errorClass, validClass) {
				$(element).parents('.control-group').removeClass('error');
				$(element).parents('.control-group').addClass('success');
			}
		});
		
		$("#btn_add").on("click",function(){
			stockRow++;
			stockLabel = new num2zh(stockRow+"");
			$("#tmpl_add_tr").tmpl({"stockLabel":"股东"+stockLabel,"stockNum":stockRow}).appendTo("#stockTable tbody");
		});
		
	});
	//-->
	</script>
</head>
<body>
	<div class="container-fluid">
    <hr>
    <div class="row-fluid">
	    <div class="span12">
	        <div class="widget-box">
	          <div class="widget-title"> <span class="icon"> <i class="icon-info-sign"></i> </span>
	            <h5>其它业务</h5>
	          </div>
	          <div class="widget-content nopadding">
	            <form class="form-horizontal" method="post" action="${pageContext.request.contextPath }/flow/saveOtherBusiness.do" id="bpmFrom" novalidate="novalidate">
	              <div class="control-group">
	              <div class="span6">
	                <label class="control-label" for="contractNo">合同编号</label>
	                <div class="controls">
	                  <input type="text" id="contractNo" name="contractNo" placeholder="合同编号">
	                </div>
	              </div>
	              <div class="span6">
	                <label class="control-label" for="businessNo">业务编号</label>
	                <div class="controls">
	                  <input type="text" id="businessNo" name="businessNo" value="${businessNo }" placeholder="业务编号">
	                </div>
	              </div>
	              </div>
	              <div class="control-group">
	              <div class="span6">
	                <label class="control-label" for="companyName">公司名称</label>
	                <div class="controls">
	                  <input type="text" id="companyName" name="companyName" placeholder="公司名称">
	                </div>
	              </div>
	              <div class="span6">
	                <label class="control-label" for="companyAddress">公司地址</label>
	                <div class="controls">
	                  <input type="text" id="companyAddress" name="companyAddress" placeholder="公司地址">
	                </div>
	              </div>
	              </div>
	              <div class="control-group">
	                <label class="control-label" for="businessScope">经营范围</label>
	                <div class="controls">
	                  <textarea id="businessScope" name="businessScope" placeholder="经营范围"></textarea>
	                </div>
	              </div>
	              <div class="control-group">
	              	<div class="span6">
	                <label class="control-label" for="firstSalesman">一级业务员</label>
	                <div class="controls">
	                  <input type="text" id="firstSalesman" name="firstSalesman" placeholder="一级业务员" />
	                </div>
	              	</div>
	              	<div class="span6">
	                <label class="control-label">二级业务员</label>
	                <div class="controls">
	                  <input type="text" name="secondSalesman" placeholder="二级业务员" >
	                </div>
	              	</div>
	              </div>
	              <div class="control-group">
	                <label class="control-label">用户名</label>
	                <div class="controls">
	                  <input type="text" name="userName" placeholder="用户名" >
	                </div>
	              </div>
	              <div class="control-group">
	              <div class="span6">
	                <label class="control-label">注册资本</label>
	                <div class="controls">
	                  <input type="text" name="registeredCapital" placeholder="注册资本" >
	                </div>
	              </div>
	              <div class="span6">
	                <label class="control-label">实收资本</label>
	                <div class="controls">
	                  <input type="text" name="paidCapital" placeholder="实收资本">
	                </div>
	              </div>
	              </div>
	              <div class="control-group">
	              <div class="span6">
	                <label class="control-label">合同金额</label>
	                <div class="controls">
	                  <input type="text" name="contractAmount" placeholder="合同金额">
	                </div>
	              </div>
	              <div class="span6">
	                <label class="control-label">回款方式</label>
	                <div class="controls">
	                  <input type="text" name="paymentWay" placeholder="回款方式">
	                </div>
	              </div>
	              </div>
	              <div class="control-group">
	                <label class="control-label">工本费</label>
	                <div class="controls">
	                  <input type="text" name="nominalFee" placeholder="工本费">
	                </div>
	              </div>
	              <div class="control-group">
	              <div class="span6">
	                <label class="control-label">CA</label>
	                <div class="controls">
	                  <select name="ca" class="span8">
	                  	<option>有</option>
	                  	<option>无</option>
	                  </select>
	                </div>
	              </div>
	              <div class="span6">
	                <label class="control-label">工本费承担方</label>
	                <div class="controls">
	                  <select name="nominalFeeBearer" class="span8">
	                  	<option>公司</option>
	                  	<option>客户</option>
	                  </select>
	                </div>
	              </div>
	              </div>
	              <div class="control-group">
	                <label class="control-label">是否记账报税</label>
	                <div class="controls">
	                  	<label><input type="radio" name="isTallyNetfile" />是</label>
	                  	<label><input type="radio" name="isTallyNetfile" />否</label>
	                </div>
	              </div>
	              <div class="control-group">
	              <div class="span6">
	                <label class="control-label">每月费用</label>
	                <div class="controls">
	                  <input type="text" name="monthlyFee" placeholder="每月费用">
	                </div>
	              </div>
	              <div class="span6">
	                <label class="control-label">应收费用</label>
	                <div class="controls">
	                  <input type="text" name="receivable" placeholder="应收费用">
	                </div>
	              </div>
	              </div>
	              <div class="row-fluid"><button id="btn_add" type="button" class="btn"><i class="icon icon-plus-sign"></i>增加</button> </div>
	              <table id="stockTable" class="table table-bordered table-striped">
	              <thead>
	              	<tr>
	              		<th style="width: 5%"></th>
	              		<th>姓名</th>
	              		<th>股权</th>
	              		<th>联系电话</th>
	              		<th>身份证号码</th>
	              		<th>籍贯</th>
	              		<th>U盾密码</th>
	              	</tr>
	              </thead>
	              <tbody>
	              	<tr>
	              		<td>法人</td>
	              		<td><input type="text" class="span12" name="bpmStockHolders[0].name" placeholder="姓名"></td>
	              		<td><input type="text" class="span12" name="bpmStockHolders[0].stockRights" placeholder="股权"></td>
	              		<td><input type="text" class="span12" name="bpmStockHolders[0].telephone" placeholder="联系电话"></td>
	              		<td><input type="text" class="span12" name="bpmStockHolders[0].identityNo" placeholder="身份证号码"></td>
	              		<td><input type="text" class="span12" name="bpmStockHolders[0].nativePlace" placeholder="籍贯"></td>
	              		<td><input type="text" class="span12" name="bpmStockHolders[0].usbPassword" placeholder="U盾密码"></td>
	              	</tr>
	              	<tr>
	              		<td>股东一</td>
	              		<td><input type="text" class="span12" name="bpmStockHolders[1].name" placeholder="姓名"></td>
	              		<td><input type="text" class="span12" name="bpmStockHolders[1].stockRights" placeholder="股权"></td>
	              		<td><input type="text" class="span12" name="bpmStockHolders[1].telephone" placeholder="联系电话"></td>
	              		<td><input type="text" class="span12" name="bpmStockHolders[1].identityNo" placeholder="身份证号码"></td>
	              		<td><input type="text" class="span12" name="bpmStockHolders[1].nativePlace" placeholder="籍贯"></td>
	              		<td><input type="text" class="span12" name="bpmStockHolders[1].usbPassword" placeholder="U盾密码"></td>
	              	</tr>
	              </tbody>
	              </table>
	              <div class="form-actions">
	                <input type="submit" value="提交" class="btn btn-success">
	              </div>
	            </form>
	          </div>
	        </div>
	      </div>
      </div>
    </div>
</body>
</html>